<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <style>
    * {
      margin: 0;
      padding: 0
    }

    html,
    body {
      width: 100%;
      height: 100%;
    }

    .box {
      transform: translate(100px, 100px);
      width: 300px;
      height: 300px;
      border: 1px solid;
    }

    .item {
      width: 50px;
      height: 50px;
      background-color: red;
      position: absolute;
      /* left: 10px; */
      transform: translate(10px, 0px);
    }
  </style>
  <div class="box">
    <div class="item">1</div>
  </div>
</body>

</html>